package com.xiaow.springsecuriydemo.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xiaow.springsecuriydemo.entity.Comments;
import com.xiaow.springsecuriydemo.mapper.CommentsMapper;
import com.xiaow.springsecuriydemo.service.CommentsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaow.springsecuriydemo.vo.CommentsVo;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author xiaow
 * @since 2022-09-19
 */
@Service
public class CommentsServiceImpl extends ServiceImpl<CommentsMapper, Comments> implements CommentsService {

    @Override
    public IPage<CommentsVo> getCommentsByGoodsId(IPage page, Long goodsid) {
        return baseMapper.getCommentsByGoodsId(page, goodsid);
    }
}
